 package com.globalresources.po;

import java.util.Date;


/**
 * Document entity. @author MyEclipse Persistence Tools
 */

public class Document  implements java.io.Serializable {
    // Fields
     private Integer id;
     private DetailUser detailUserByUserId;
     private DetailUser detailUserByPatient;
     private DetailUser detailUserByOpeatorId;
     private Hospital hospital;
     private Date createTime;
     private Date operateTime;
     private Date signTime;
     private Byte isSign;
     private Byte isView;
     private String filename;
     //alter table document add column case_number varchar(100) ;
     /**insert into menu set name="Patient Documents", path="../document/listPatientDocument.action",
      * authority_id = 7 , remark = "#" , sequence = 86 , is_root = 0 , groups_id = 4 ;
      * insert into menu set name="Patient Sign Documents", path="../document/listSignPatientDocument.action",
      * authority_id = 7 , remark = "#" , sequence = 85 , is_root = 0 , groups_id = 4 ;
      * insert into menu set name="Patient UnSign Documents", path="../document/listUnSignPatientDocument.action",
      * authority_id = 7 , remark = "#" , sequence = 84 , is_root = 0 , groups_id = 4 ;  -
      * insert into menu set name="Patient Document" , path="../document/listPatientDocumentNum.action",
      * authority_id = 7 , remark = "#", sequence = 86 , is_root = 0 , groups_id = 4 ;
     */
     //
     
     private String caseNumber ;
     private String patient;
     private String introduction;
     // Constructors

    /** default constructor */
    public Document() {
    }
   /** minimal constructor */
    public Document(Hospital hospital, Byte isSign, Byte isView, String filename,String patient) {
        this.hospital = hospital;
        this.isSign = isSign;
        this.isView = isView;
        this.filename = filename;
        this.patient=patient;
    }
    
    /** full constructor */
    public Document(DetailUser detailUserByUserId, DetailUser detailUserByPatient, DetailUser detailUserByOpeatorId, Hospital hospital, Date createTime, Date operateTime, Date signTime, Byte isSign, Byte isView, String filename, String caseNumber ,String patient,String introduction) {
        this.detailUserByUserId = detailUserByUserId;
        this.detailUserByPatient = detailUserByPatient;
        this.detailUserByOpeatorId = detailUserByOpeatorId;
        this.hospital = hospital;
        this.createTime = createTime;
        this.operateTime = operateTime;
        this.signTime = signTime;
        this.isSign = isSign;
        this.isView = isView;
        this.filename = filename;
        this.caseNumber = caseNumber ;
        this.patient=patient;
        this.introduction = introduction;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public DetailUser getDetailUserByUserId() {
        return this.detailUserByUserId;
    }
    
    public void setDetailUserByUserId(DetailUser detailUserByUserId) {
        this.detailUserByUserId = detailUserByUserId;
    }

    public DetailUser getDetailUserByPatient() {
        return this.detailUserByPatient;
    }
    
    public void setDetailUserByPatient(DetailUser detailUserByPatient) {
        this.detailUserByPatient = detailUserByPatient;
    }

    public DetailUser getDetailUserByOpeatorId() {
        return this.detailUserByOpeatorId;
    }
    
    public void setDetailUserByOpeatorId(DetailUser detailUserByOpeatorId) {
        this.detailUserByOpeatorId = detailUserByOpeatorId;
    }

    public Hospital getHospital() {
        return this.hospital;
    }
    
    public void setHospital(Hospital hospital) {
        this.hospital = hospital;
    }

    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getOperateTime() {
        return this.operateTime;
    }
    
    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public Date getSignTime() {
        return this.signTime;
    }
    
    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }

    public Byte getIsSign() {
        return this.isSign;
    }
    
    public void setIsSign(Byte isSign) {
        this.isSign = isSign;
    }

    public Byte getIsView() {
        return this.isView;
    }
    
    public void setIsView(Byte isView) {
        this.isView = isView;
    }

    public String getFilename() {
        return this.filename;
    }
    
    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getIntroduction() {
        return this.introduction;
    }
    
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

	/**
	 * @return the patient
	 */
	public String getPatient() {
		return patient;
	}

	/**
	 * @param patient the patient to set
	 */
	public void setPatient(String patient) {
		this.patient = patient;
	}

	public String getCaseNumber() {
		return caseNumber;
	}

	public void setCaseNumber(String caseNumber) {
		this.caseNumber = caseNumber;
	}
   








}